from zope.interface import Interface
from zope.schema import List, Text, TextLine, Int

class IRecipe(Interface):
    """Store information about a recipe.
    """

    name = TextLine(
        title=u"Name",
        description=u"Name of the dish",
        required = True
        )

    ingredients = List(
        title=u"Ingredients",
        description=u"List of ingredients necessary for this recipe.",
        required=True,
        value_type=TextLine(title=u"Ingredient")
        )

    tools = List(
        title=u"Tools",
        description=u"List of necessary kitchen tools",
        required=False,
        value_type=TextLine(title=u"Tool")
        )

    time_to_cook = Int(
        title=u"Time to cook",
        description=u"Necessary time for preparing the meal described, "
        "in minutes.",
        required=True
        )

    description = Text(
        title=u"Description",
        description=u"Description of the recipe",
        required=True
        )
